<div class="collection-item clearfix">
	<div class="book-item">
		<h1 class="collection-tt"><%= group[i] %></h1>
		<a 
		  href="javascript:;"
		  class="btn btn-info"
		>
		  加入交流
		</a>
	</div>
	<% 
	for (var j = 0; j < bookData.length; j++) { 
	     var dataItem = bookData[j];
	     if (dataItem.field == (i + 1)){
			 group[i] == '限时促销' && promotion++;
			 group[i] == '新书上线' && newBook++;
			 group[i] == '最受好评' && hot++;
			 group[i] == '经典回顾' && classicReview++;
			 if (promotion > 0 && promotion <= 4) {
	%>
		        <%- include('../../common/bookItem/index.ejs', {
			      item: dataItem,
			      IMG_BASE_URL
		        }) %>
	<%        } 
	          if (newBook > 0 && newBook <= 3){
	%>
				 <%- include('../../common/bookItem/index.ejs', {
			       item: dataItem,
			       IMG_BASE_URL
		         }) %>
	<%         }
	           if (hot > 0 && hot <= 2){ 
	%>
				  <%- include('../../common/bookItem/index.ejs', {
			        item: dataItem,
			        IMG_BASE_URL
		           }) %>
	<% 	        }
	            if (classicReview > 0 && classicReview <= 1) {
	%>
					<%- include('../../common/bookItem/index.ejs', {
			          item: dataItem,
			          IMG_BASE_URL
		            }) %>
	<%          }
	      }
	 } 
	%>
</div>